Skip to content

Conversation

kpommerenke
Copy link

These changes catch missing data, and make some classes more extendable.

Take into account that $line_item['resourceId'] and $line_item['tag'] are optional
deep_link_settings['data'] might be empty. It is only required if  present in LtiDeepLinkingRequest message: https://www.imsglobal.org/spec/lti-dl/v2p0#data
Use $request['target_link_uri'] as the fall-back redirect_uri.
Return new static instead of new LTI_Message_Launch so that the class can be extended.
Throw exception when nonce does not check out.
Remove var_dump() statement.
Return new static instead of new LTI_Deep_Link_Resource to make it easier to extend the class.
Include all line_item attributes in new deep link resource, not just scoreMaximum and label.
Offer default for missing $lineitem["startDateTime"] and $lineitem["endDateTime"].
Return new static instead of new LTI_Lineitem to make it easier to extend the class.
Decompose __toString() into two functions: to_array() and __toString()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant